package com.dinner.service;

import java.util.List;

import com.dinner.model.Order;
import com.dinner.util.PageHelper;

public interface OrderService {

	public void createOrder(String consumerID, int menuID, String address,
			String phone, int serveNumber);
	
	public List<Order> getOrderBySeller(String sellerID, byte state);

	public List<Order> getOrderByConsumer(String consumerID, byte state);
	
	public void completeOrder(String consumerID, int orderID);

	public void handleOrder(String sellerID, int orderID);

	public List<Order> getOrderByConsumerAndPage(String userID, byte state,
			PageHelper p);

	public List<Order> getOrderBySellerAndPage(String userID, byte state,
			PageHelper p);
	
}
